package typeErasure.genericArray;

/**
 * Unchecked:
 * weak typing.
 * No type checking is actually done on any of the objects passed as argument.
 * @param <E>
 */
public class GenSet2<E> {

    private Object[] a;

    public GenSet2(int s) {
        a = new Object[s];
    }

    E get(int i) {
        @SuppressWarnings("unchecked")
        final  E e = (E) a[i];
        return e;
    }

}
